﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ReportViewerControl.ascx.cs"
  Inherits="SaleManagement.Web.Controls.ReportViewerControl" %>
<%@ Register Assembly="DevExpress.XtraReports.v9.1.Web, Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
  Namespace="DevExpress.XtraReports.Web" TagPrefix="dxxr" %>
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
  <tr>
    <td colspan="2" style="padding-top: 3px;">
      <dxxr:ReportToolbar ID="reportToolbarTop" runat="server" Font-Names="Tahoma" Font-Size="9pt"
        ItemSpacing="2px" SeparatorHeight="100%" SeparatorWidth="1px" Width="90%" ShowDefaultButtons="False"
        SeparatorColor="#A3C0E8" ReportViewer="<%# rptViewer %>">
        <Border BorderColor="#A3C0E8" BorderStyle="Solid" BorderWidth="1px" />
        <Items>
          <dxxr:ReportToolbarButton ItemKind="Search" ToolTip="Display the search window" />
          <dxxr:ReportToolbarSeparator />
          <dxxr:ReportToolbarButton ItemKind="PrintReport" ToolTip="Print the report" />
          <dxxr:ReportToolbarButton ItemKind="PrintPage" ToolTip="Print the current page" />
          <dxxr:ReportToolbarSeparator />
          <dxxr:ReportToolbarButton Enabled="False" ItemKind="FirstPage" ToolTip="First Page" />
          <dxxr:ReportToolbarButton Enabled="False" ItemKind="PreviousPage" ToolTip="Previous Page" />
          <dxxr:ReportToolbarLabel Text="Page" />
          <dxxr:ReportToolbarComboBox ItemKind="PageNumber" Width="65px">
          </dxxr:ReportToolbarComboBox>
          <dxxr:ReportToolbarLabel Text="of" />
          <dxxr:ReportToolbarTextBox IsReadOnly="True" ItemKind="PageCount" />
          <dxxr:ReportToolbarButton ItemKind="NextPage" ToolTip="Next Page" />
          <dxxr:ReportToolbarButton ItemKind="LastPage" ToolTip="Last Page" />
          <dxxr:ReportToolbarSeparator />
          <dxxr:ReportToolbarButton ItemKind="SaveToDisk" ToolTip="Export a report and save it to the disk" />
          <dxxr:ReportToolbarButton ItemKind="SaveToWindow" ToolTip="Export a report and show it in a new window" />
          <dxxr:ReportToolbarComboBox ItemKind="SaveFormat" Width="70px">
            <Elements>
              <dxxr:ListElement Text="Pdf" Value="pdf" />
              <dxxr:ListElement Text="Xls" Value="xls" />
              <dxxr:ListElement Text="Rtf" Value="rtf" />
              <dxxr:ListElement Text="Mht" Value="mht" />
              <dxxr:ListElement Text="Text" Value="txt" />
              <dxxr:ListElement Text="Csv" Value="csv" />
              <dxxr:ListElement Text="Image" Value="png" />
            </Elements>
          </dxxr:ReportToolbarComboBox>
        </Items>
        <Images ImageFolder="~/App_Themes/Aqua/{0}/">
        </Images>
        <Styles CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua">
          <LabelStyle ForeColor="#2C4D79">
            <Margins MarginLeft="3px" MarginRight="3px" />
          </LabelStyle>
          <ComboBoxStyle>
            <Margins MarginLeft="3px" MarginRight="3px" />
          </ComboBoxStyle>
          <ComboBoxButtonStyle>
            <DropDownButtonImage Height="7px" 
              Url="~/App_Themes/Aqua/Editors/edtDropDown.png" 
              UrlDisabled="~/App_Themes/Aqua/Editors/edtDropDownDisabled.png" 
              UrlHottracked="~/App_Themes/Aqua/Editors/edtDropDownHottracked.png" 
              Width="7px" />
          </ComboBoxButtonStyle>
          <TextBoxStyle>
            <Margins MarginLeft="2px" MarginRight="2px" />
          </TextBoxStyle>
          <ButtonStyle HorizontalAlign="Center" VerticalAlign="Middle">
          </ButtonStyle>
        </Styles>
      </dxxr:ReportToolbar>
    </td>
  </tr>
  <tr>
    <td colspan="2">
    </td>
  </tr>
  <tr>
    <td colspan="2">
      <div style="overflow: auto; width: 750px; height: 650px;">
        <dxxr:ReportViewer ID="rptViewer" runat="server" ClientInstanceName="rptViewer">
        </dxxr:ReportViewer>
      </div>
    </td>
  </tr>
  <tr>
    <td colspan="2" style="height: 8px">
    </td>
  </tr>
  <tr>
    <td colspan="2" valign="top">
      <dxxr:ReportToolbar ID="reportToolbarBottom" runat="server" Font-Names="Tahoma" Font-Size="9pt"
        ItemSpacing="2px" ReportViewer="<%# rptViewer %>" Width="90%" SeparatorHeight="100%"
        SeparatorWidth="1px" ShowDefaultButtons="False" SeparatorColor="#A3C0E8">
        <Border BorderColor="#A3C0E8" BorderStyle="Solid" BorderWidth="1px" />
        <Items>
          <dxxr:ReportToolbarButton ItemKind="Search" ToolTip="Display the search window" />
          <dxxr:ReportToolbarSeparator />
          <dxxr:ReportToolbarButton ItemKind="PrintReport" ToolTip="Print the report" />
          <dxxr:ReportToolbarButton ItemKind="PrintPage" ToolTip="Print the current page" />
          <dxxr:ReportToolbarSeparator />
          <dxxr:ReportToolbarButton Enabled="False" ItemKind="FirstPage" ToolTip="First Page" />
          <dxxr:ReportToolbarButton Enabled="False" ItemKind="PreviousPage" ToolTip="Previous Page" />
          <dxxr:ReportToolbarLabel Text="Page" />
          <dxxr:ReportToolbarComboBox ItemKind="PageNumber" Width="65px">
          </dxxr:ReportToolbarComboBox>
          <dxxr:ReportToolbarLabel Text="of" />
          <dxxr:ReportToolbarTextBox IsReadOnly="True" ItemKind="PageCount" />
          <dxxr:ReportToolbarButton ItemKind="NextPage" ToolTip="Next Page" />
          <dxxr:ReportToolbarButton ItemKind="LastPage" ToolTip="Last Page" />
          <dxxr:ReportToolbarSeparator />
          <dxxr:ReportToolbarButton ItemKind="SaveToDisk" ToolTip="Export a report and save it to the disk" />
          <dxxr:ReportToolbarButton ItemKind="SaveToWindow" ToolTip="Export a report and show it in a new window" />
          <dxxr:ReportToolbarComboBox ItemKind="SaveFormat" Width="70px">
            <Elements>
              <dxxr:ListElement Text="Pdf" Value="pdf" />
              <dxxr:ListElement Text="Xls" Value="xls" />
              <dxxr:ListElement Text="Rtf" Value="rtf" />
              <dxxr:ListElement Text="Mht" Value="mht" />
              <dxxr:ListElement Text="Text" Value="txt" />
              <dxxr:ListElement Text="Csv" Value="csv" />
              <dxxr:ListElement Text="Image" Value="png" />
            </Elements>
          </dxxr:ReportToolbarComboBox>
        </Items>
        <Images ImageFolder="~/App_Themes/Aqua/{0}/">
        </Images>
        <Styles CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua">
          <LabelStyle ForeColor="#2C4D79">
            <Margins MarginLeft="3px" MarginRight="3px" />
          </LabelStyle>
          <ComboBoxStyle>
            <Margins MarginLeft="3px" MarginRight="3px" />
          </ComboBoxStyle>
          <ComboBoxButtonStyle>
            <DropDownButtonImage Height="7px" 
              Url="~/App_Themes/Aqua/Editors/edtDropDown.png" 
              UrlDisabled="~/App_Themes/Aqua/Editors/edtDropDownDisabled.png" 
              UrlHottracked="~/App_Themes/Aqua/Editors/edtDropDownHottracked.png" 
              Width="7px" />
          </ComboBoxButtonStyle>
          <TextBoxStyle>
            <Margins MarginLeft="2px" MarginRight="2px" />
          </TextBoxStyle>
          <ButtonStyle HorizontalAlign="Center" VerticalAlign="Middle">
          </ButtonStyle>
        </Styles>
      </dxxr:ReportToolbar>
    </td>
  </tr>
</table>
